from rest_framework.generics import ListAPIView

from headline.models import Channel
from headline.serializers.channel import ChannelSerializer
from scf_project.utils.pagenum import PageNum


class ChannelsView(ListAPIView):
    serializer_class = ChannelSerializer
    queryset = Channel.objects.all().order_by('id')
    pagination_class = PageNum
